Computer apparatus and method of diagnosing same

ABSTRACT

A computer apparatus and a method of diagnosing are provided that increase reliability and make non-stop operation possible even at a hardware repair, replacement, or addition time. The computer apparatus, which comprises a main OS and a sub OS, may have a peripheral device or an I/O card repaired, replaced, or added with power on. The repaired, replaced, or added hardware component is disconnected from the main OS. With the main OS performing usual processing, the sub OS uses a test/maintenance program to check the operation of the repaired, replaced, or added hardware component and then passes the control of the hardware component to the main OS.

BACKGROUND OF THE INVENTION

[0001] The present invention relates to a computer apparatus and a method of diagnosing, and more particularly to a computer apparatus in which a hardware component may be replaced, repaired, or added with power on and a method of diagnosing that uses the computer apparatus.

[0002] As described in “PCI Hot-Plug Specification Revision 1.0”, Oct. 6, 1997 (Copyright(c) 1997, PCI Special Interest Group), a PCI card connected to the PCI bus on a today's computer apparatus may be removed, repaired, replaced, and then connected again for continued PCI card operation even during OS operation without turning off the computer power (hereinafter called “hot swapping”).

[0003] Recently, a computer, especially a server, is required to perform non-stop operation (24 hours a day, 365 days a year). Therefore, hot swapping described above makes it possible to repair or replace a hardware component, such as a PCI card, with the OS running and, then, to put the component into operation again under control of the OS again.

[0004] However, when a hardware component such as a PCI card is repaired or replaced with the OS running and then is put into operation again under control of the OS, there is no way to check if the repaired or replaced PCI card operates properly or if the card is mounted correctly. Whether or not the repair or replacement has been done successfully is not known until control is passed back to the OS and the component starts operation under control of the OS. For a server that is required to perform non-stop operation, it is dangerous to put a repaired or replaced PCI card under OS control while worrying whether it operates properly.

[0005] Similarly, a PCI card or a peripheral device may be added even during non-stop operation (hereinafter called “hot plugging”). However, after addition, it is dangerous to put the added PCI card or peripheral device under OS control without checking the operation.

[0006] To avoid such a danger, a PCI card is repaired, replaced or added with the power off. Then, after the hardware component is repaired, replaced, or added, the OS environment containing a test program for checking the hardware is started and, after confirming that the hardware operation is normal with the use of the test program, the power is turned off or the system is re-booted to start the main OS and to bring the system back into normal operation. The problem with this method is that the non-stop operation cannot be performed because this method requires the main OS to stop operation while the hardware component is repaired, replaced, or added and while the test/maintenance program checks the hardware operation.

SUMMARY OF THE INVENTION

[0007] It is an object of the present invention to provide a computer apparatus and a method of diagnosing that ensure high reliability and non-stop operation even when a hardware component is repaired, replaced, or added.

[0008] To achieve the above object, the present invention provides a computer apparatus in which a first OS and a second OS may be installed and in which a hardware component may be repaired, replaced, or added with power on, wherein the repaired, replaced, or added hardware component is disconnected from the first OS and, after an operation of the repaired, replaced, or added hardware component is checked by the second OS with the first OS performing usual processing, a control of the hardware component is passed to the first OS.

[0009] This configuration ensures increased reliability even at a hardware component repair, replacement, or addition time and, at the same time, makes non-stop operation possible.

[0010] In addition, to achieve the above object, the present invention provides a method of diagnosing that uses a computer apparatus in which a first OS and a second OS may be installed and in which a hardware component may be repaired, replaced, or added with power on, wherein, with the first OS performing usual processing, the second OS uses a test program to check an operation of the repaired, replaced, or added hardware component.

[0011] This method ensures increased reliability even at a hardware component repair, replacement, or addition time and, at the same time, makes non-stop operation possible.

[0012] Other objects, features and advantages of the invention will become apparent from the following description of the embodiments of the invention taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0013]FIG. 1 is a block diagram showing the system configuration of a computer apparatus in one embodiment of the present invention.

[0014]FIG. 2 is a flowchart showing the processing of a hardware diagnostic method using the computer apparatus in one embodiment of the present invention.

DETAILED DESCRIPTION OF THE EMBODIMENTS

[0015] With reference to FIGS. 1 and 2, the configuration and the operation of a computer apparatus in one embodiment of the present invention will be described.

[0016]FIG. 1 is a block diagram showing the system configuration of a computer apparatus in one embodiment of the present invention, and FIG. 2 is a flowchart showing the processing of a hardware diagnosing method using the computer apparatus in one embodiment of the present invention.

[0017] First, with reference to FIG. 1, the hardware configuration and software configuration of the computer apparatus in the embodiment will be described. In FIG. 1, the part above the dotted line in the center of the figure indicates the hardware configuration, and the part below the dotted line indicates the software configuration.

[0018] First, the hardware will be described. The computer apparatus comprises a hardware core 1, a periperal device control circuit 2, and an I/O bus control circuit 3. The hardware core 1 comprises a CPU, a memory, a power supply, and so on. When the hardware core 1 fails, the computer apparatus cannot perform operation. The peripheral device control circuit 2 controls peripheral devices (6-1 and/or 6-2). The I/O bus control circuit 3 controls I/O cards (7-1 and/or 7-2).

[0019] Peripheral device connection switches (4-1 and/or 4-2) are provided between the peripheral devices (6-1 and/or 6-2) and the peripheral device control circuit 2 to allow the peripheral devices (6-1 and/or 6-2) to be hot-swapped or hot-plugged. Note that, depending upon the interface between the peripheral devices (6-1 and/or 6-2) and the peripheral device control circuit 2, the peripheral device connection switches (4-1 and/or 4-2) are not always needed. I/O bus connection switches (5-1 and/or 5-2) are provided in an I/O bus, such as a PCI bus connecting the I/O cards (7-1 and/or 7-2) to the I/O bus control circuit 3, and support hot-swapping.

[0020] Next, the software configuration will be described. A multiple-OS controller 11 enables a plurality of OSs to be installed on one hardware unit. Under control of the multiple-OS controller 11, a main OS 8 and a sub OS 9 are installed. Under control of the sub OS 9, a test/maintenance program 10 is installed. The main OS 8 and the sub OS 9 may control the peripheral devices (6-1 and/or 6-2) and the I/O cards (7-1 and/or 7-2) as necessary. For example, DAL (DARMA (Dependable Autonomous Hard Real-Time Management) Abstraction Layer), described in the pamphlet “Ex-Manager”, December 1999, Information Device Operation Division of Hitachi Ltd., may be used as the multiple-OS controller 11. Windows NT may be used, for example, as the main OS 8 installed under control of the multiple-OS controller 11, and Ex-Kernel may be used as the sub OS 9.

[0021] Next, a hardware diagnosing method in the embodiment will be described with reference to FIG. 2.

[0022] Normally, the peripheral devices (6-1 and/or 6-2) or the I/O cards (7-1 and/or 7-2) operate under control of the main OS 8.

[0023] When the main OS 8 detects a failure in the peripheral devices (6-1 and/or 6-2) or the I/O cards (7-1 and/or 7-2) during operation in step S10, processing in the steps beginning with step S20 are executed. In this embodiment, the failed peripheral devices (6-1 and/or 6-2) or I/O cards (7-1 and/or 7-2) is repaired or replaced and then safely put under the control of the main OS 8 again without stopping the operation of the main OS 8. In the description below, it is assumed that an I/O card 1 (7-1) has failed. The description also applies when an I/O card 2 (7-2) or peripheral device 6-1 or 6-2 fails.

[0024] For example, when a failure is detected in the I/O card 1 (7-1), the main OS 8 disconnects the failed I/O card 1 (7-1) from the control in step S20.

[0025] Next, in step S30, the failed I/O card 1 (7-1) is electrically disconnected from the I/O bus control circuit 3 by an I/O bus connection switch 5-1. The I/O bus connection switch 5-1 may be switched off, for example, by the main OS 8, by a repairman of the failed part, or by removing the failed I/O card.

[0026] Next, in step S40, the repairman removes the I/O card 1 (7-1) from the computer for repairing it. The repaired I/O card 1 (7-1) is installed in the slot from where it was removed.

[0027] Next, in step S50, the repaired I/O card 1 (7-1) is electrically connected to the I/O bus control circuit 3 by the operation of the I/O bus connection switch 5-1.

[0028] Next, in step S60, the sub OS 9 controls the repaired I/O card 1 (7-1). That is, this embodiment is characterized in that the sub OS 9 controls the repaired I/O card 1 (7-1). This allows the main OS 8 to continue normal operation, making non-stop operation possible.

[0029] Next, in step S70, the sub OS 9 uses the test/maintenance program 10 to check the operation of the repaired I/O card 1 (7-1).

[0030] Next, in step S80, the sub OS 9 checks if the operation of the I/O card 1 (7-1) for which the test/maintenance program 10 was executed is normal. If the operation is not normal, control is passed to step S90; if the operation is normal, control is passed to step S100.

[0031] If the operation of the I/O card 1 (7-1) is not normal, the sub OS 9 disconnects the abnormal I/O card 1 (7-1) from the control in step S90 and repeats the operations following step S30 to repair the I/O card 1 (7-1) again.

[0032] On the other hand, if the operation of the I/O card 1 (7-1) is normal, the sub OS 9 removes the repaired I/O card 1 (7-1) from the control in step S100 and passes the control of the I/O card 1 (7-1) to the main OS 8.

[0033] Next, in step S110, the main OS 8 puts the repaired I/O card 1 (7-1) in normal operation. Through the sequence of operations described above, the failed I/O card 1 (7-1) is repaired without having to interrupt the operation of the main OS.

[0034] In the above description, the method is used to repair or replace a failed peripheral devices (6-1 and/or 6-2) or I/O cards (7-1 and/or 7-2). The processing steps following step S50 may also be used to add a peripheral devices (6-1 and/or 6-2) or an I/O cards (7-1 and/or 7-2) without having to interrupt the processing of the main OS.

[0035] For a PC card used on a notebook PC, when a new PC card is inserted into the PC card slot, it is also possible to check the operation of the inserted PC card with the use of the sub OS and then to pass the control of the inserted PC card to the main OS.

[0036] In this embodiment, because the test/maintenance program is used to check the operation of a repaired or added hardware component after it is installed on the computer as described above, the hardware component is passed reliably to the main OS. Thus, the so-called the hot-swapping or hot-plugging operation may be executed under guarantee of the test/maintenance program. The main OS may use the hardware that is guaranteed to operate properly and, therefore, ensures increased reliability. In addition, the main OS, capable of continuing usual processing, may perform non-stop operation.

[0037] From a security point of view, the main OS is responsible for managing critical processing or important data while the sub OS is responsible only for computer apparatus maintenance operations such as the execution of the test/maintenance program. The task steps may be divided as follows: the security manager executes steps S10 and S20, the computer repair and maintenance engineer executes steps S30-S90, and the security manager executes step S100 and S110 again. This eliminates the need for the repair and maintenance engineer to directly operate the main OS with human errors taken into consideration and therefore increases system reliability.

[0038] The method according to the present invention increases security at the time of hardware repair, replacement, or addition and, at the same time, makes it possible to perform non-stop operation.

[0039] It should be further understood by those skilled in the art that although the foregoing description has been made on embodiments of the invention, the invention is not limited thereto and various changes and modifications may be made without departing from the spirit of the invention and the scope of the appended claims. 

What is claimed is:
 1. A computer apparatus in which a first OS and a second OS may be installed and in which a hardware component may be repaired, replaced, or added with power on, wherein the repaired, replaced, or added hardware component is disconnected from said first OS and, after an operation of the repaired, replaced, or added hardware component is checked by said second OS with said first OS performing usual processing, a control of the hardware component is passed to said first OS.
 2. A method of diagnosing that uses a computer apparatus in which a first OS and a second OS may be installed and in which a hardware component may be repaired, replaced, or added with power on, wherein, with said first OS performing usual processing, said second OS uses a test program to check an operation of the repaired, replaced, or added hardware component. 